import {createApp} from 'vue'
// @ts-ignore
//引入清除默认样式
import '@/style/reset.scss'

//引入根组件App
// @ts-ignore
import App from '@/App.vue'
//引入全局组件--顶部、底部
// @ts-ignore
import HospitalTop from '@/components/hospital_top/index.vue';
// @ts-ignore
import HospitalBottom from '@/components/hospital_bottom/index.vue';

//引入vue-router核心插件并安装
// @ts-ignore
import router from "@/router";

//引入element-plus插件
// @ts-ignore
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// @ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

//利用createApp方法创建应用实例，且将应用实例挂载到挂载点上
const app = createApp(App)
app.component('HospitalTop',HospitalTop)
app.component('HospitalBottom',HospitalBottom)
//安装vue-router
app.use(router)
//安装element-plus
app.use(ElementPlus, {
    locale: zhCn,
})

app.mount('#app')
